﻿@model ResourceManagerWebApp.Models.ProfileModel

<html>
<head>
    <title>Profile</title>
</head>
<body>
    <div>
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            @Html.ValidationSummary()

            <fieldset>
                <legend>Profile</legend>
                <table>
                    <tr>
                        <th>
                            <td>@Html.LabelFor(m => m.Login)</td>
                            <td>@Model.Login</td>
                        </th>
                    </tr>
                    <tr>
                        <th>
                            <td>@Html.LabelFor(m => m.FirstName)</td>
                            <td>@Html.EditorFor(m => m.FirstName)</td>
                        </th>
                    </tr>
                    <tr>
                        <th>
                            <td>@Html.LabelFor(m => m.LastName)</td>
                            <td>@Html.EditorFor(m => m.LastName)</td>
                        </th>
                    </tr>
                    <tr>
                        <th>
                            <td>@Html.LabelFor(m => m.Email)</td>
                            <td>@Html.EditorFor(m => m.Email)</td>
                        </th>
                    </tr>
                    <tr>
                        <th>
                            <td>@Html.LabelFor(m => m.Skype)</td>
                            <td>@Html.EditorFor(m => m.Skype)</td>
                        </th>
                    </tr>
                    <tr>
                        <th>
                            <td>@Html.LabelFor(m => m.MessageTimeSpan)</td>
                            <td>@Html.EditorFor(m => m.MessageTimeSpan)</td>
                        </th>
                    </tr>
                </table>

                <input type="submit" value="Edit Profile" />
                <input type="submit" value="Change Password" />
            </fieldset>
        }
    </div>
</body>
</html>
